package org.asg.dis.repository;

import org.asg.dis.model.ComplaintResponse;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ComplaintResponseRepo extends JpaRepository<ComplaintResponse, Long> {
    // 根据投诉ID查询所有回复
    List<ComplaintResponse> findByComplaint_ComplaintId(Long complaintId);

    // 根据处理人员ID查询所有回复
    List<ComplaintResponse> findByProcessor_UserId(Long processorId);
}

